package com.njust.service;


import com.njust.bean.Teacher;
import com.njust.dao.TeacherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherService {

    @Autowired
    private TeacherDao teacherDao;

    public Teacher getEmployeeById(Integer id){
        Teacher teacher = teacherDao.getTeacherById(id);
        System.err.println(teacher);
        return teacher;
    }
}
